package com.rent.transaction.controller;

import com.rent.transaction.service.TransactionService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/trans")
@RestController
public class TransactionController {
    private TransactionService transactionService;

    public TransactionController(TransactionService transactionService) {
        this.transactionService = transactionService;
    }

    @RequestMapping("/testMutilDatasource")
    public String testMutilDatasource(){
        transactionService.testMutilDatasource();

        return "springboot 开始";
    }
}
